From: Darius Thabit To: George Kamenz Msg #299, 04-Nov-88 07:03.00 Subject: drives > How can one check ... a logical drive? I've commented on this at length before so I'll just outline it. To see if a drive exists (is recognized by DOS): using DOS functions 0Eh and 19h, save the current drive, try to make the candidate drive the current drive, then read the current drive to see if it was successful (then restore the current drive); for DOS 3.0+ just use function 44h subfunction 09h; neither requires disk I/O. To see if an existing drive is ready, use DOS interrupt 25h to try to read one absolute sector (say sector 0); if you're feeling lucky you can test for write-protect by writing it back with int 26h (but I would not use the boot sector in this case); neither of these will result in an "Abort ..." message. --- QuickBBS v2.03 * Origin: Boston, Mass [MABOS] 617-364-2474 (1:101/160)